import type { Recordable } from '@vben/types';
import { requestClient } from '#/api/request';

export async function add(data) {
  return requestClient.post('/task/airline/add', data);
}

export async function list(data) {
  return requestClient.post('/task/airline/getAirlineList', data);
}

export async function editAirline(data) {
  return requestClient.post('/task/airline/editAirline', data);
}

export async function getAirlineById(data) {
  return requestClient.post('/task/airline/getAirlineById', data);
}

export async function deleteAirline(data) {
  return requestClient.post('/task/airline/deleteAirline', data);
}
//坐标转换
export async function coordinateConversion(data) {
  return requestClient.post('/task/airline/zbzh', data);
}

//添加面状航线
export async function addPlanarAirline(data) {
  return requestClient.post('/task/airline/addPlanarAirline', data);
}
//修改面状航线
export async function updatePlanarAirline(data) {
  return requestClient.post('/task/airline/updatePlanarAirline', data);
}
// 品牌名称列表
export async function getBrandList(data) {
  return requestClient.post('/task/airline/getBrandList', data);
}
// 设备型号列表
export async function getModelList(data) {
  return requestClient.post('/task/airline/getModelList', data);
}
//根据航线编号获取航线
export async function getAirlineByAirlineCode(data) {
  return requestClient.post('/task/airline/getAirlineByAirlineCode', data);
}

// 获取全部无人机型号
export async function getAllModel(data) {
  return requestClient.post('/task/airline/getModelList2', data);
}

// 添加航线名称
export async function addName(data) {
  return requestClient.post('/task/airline/addName', data);
}

// 修改航线名称
export async function editName(data) {
  return requestClient.post('/task/airline/editName', data);
}

// 生成面状航线
export async function generatorPlanarAirline(data) {
  return requestClient.post('/task/airline/generatorPlanarAirline', data);
}

// 查询航线(面状)
export async function getPlanarAirlineById(data) {
  return requestClient.post('/task/airline/getPlanarAirlineById', data);
}